﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CopyFileList
{
    public partial class FileList : Form
    {
        public List<string> Add_File_List { get; set; }
        public List<string> Change_FileList { get; set; }
        public FileList()
        {
            InitializeComponent();
            
        }

        private void txt_AddFileList_DoubleClick(object sender, EventArgs e)
        {
            Clipboard.SetText(this.txt_AddFileList.Text);
            MessageBox.Show("复制成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        private void txt_ChangeFileList_DoubleClick(object sender, EventArgs e)
        {
            Clipboard.SetText(this.txt_ChangeFileList.Text);
            MessageBox.Show("复制成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        private void FileList_Load(object sender, EventArgs e)
        {
            this.groupBox1.Text = "新增 " + Add_File_List.Count + " 个文件";
            this.groupBox2.Text = "修改 " + Change_FileList.Count + " 个文件";
            Add_File_List.ForEach(lt => this.txt_AddFileList.Text = this.txt_AddFileList.Text + lt + "\r\n");
            Change_FileList.ForEach(lt => this.txt_ChangeFileList.Text = this.txt_ChangeFileList.Text + lt + "\r\n");

        }
    }
}
